{extend name="layout"}
{block name="style"}{/block}
{block name="left_main"}
  <ul class="layui-nav layui-nav-tree" style="width:100%;">
    <li class="layui-nav-item {if in_array(request()->action(),['index'])}layui-this{/if}"><a href="{:url('index/index')}">主页</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['menu'])}layui-this{/if}"><a href="{:url('system/menu')}">菜单管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['wechat'])}layui-this{/if}"><a href="{:url('system/wechat')}">公众号管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['users'])}layui-this{/if}"><a href="{:url('system/users')}">用户管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['ad'])}layui-this{/if}"><a href="{:url('system/ad')}">广告图管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['lang'])}layui-this{/if}"><a href="{:url('system/lang')}">多语言管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['databases'])}layui-this{/if}"><a href="{:url('system/databases')}">数据库管理</a></li>
    <li class="layui-nav-item {if in_array(request()->action(),['conf'])}layui-this{/if}"><a href="{:url('system/conf')}">系统配置</a></li>
  </ul>
{/block}
{block name="right_main"}
  <div class="layui-tab layui-tab-card">
    <ul class="layui-tab-title">
      <li class="layui-this">公司信息</li>
      <li>软件信息</li>
      <li>服务器信息</li>
      <li>数据库信息</li>
      <li>PHP相关参数</li>
    </ul>
    <div class="layui-tab-content">
      <div class="layui-tab-item layui-show">
        <table class="layui-table">
            <tr>
                <td>当前语言版本</td>
                <td>{$system['title']?:'中文'}</td>
            </tr>
            <tr>
                <td width="40%">网站名称</td>
                <td width="60%">{$system['web_name']}</td>
            </tr>
            <tr>
                <td>公司名称</td>
                <td>{$system['company_name']}</td>
            </tr>
            <tr>
                <td>公司地址</td>
                <td>{$system['addr']}</td>
            </tr>
            <tr>
                <td>公司联系人</td>
                <td>{$system['contacts']?:''}</td>
            </tr>
            <tr>
                <td>公司电话</td>
                <td>{$system['mobile']}</td>
            </tr>
            <tr>
                <td>公司邮箱</td>
                <td>{$system['email']}</td>
            </tr>
            <tr>
                <td>公司介绍</td>
                <td>{$system['introduce']}</td>
            </tr>
        </table>
      </div>
      <div class="layui-tab-item">
        <table class="layui-table">
            <tr>
                <td width="40%">软件名称</td>
                <td width="60%">多用户视频网站平台</td>
            </tr>
            <tr>
                <td>系统版本</td>
                <td>v2.0.0</td>
            </tr>
            <tr>
                <td>QQ</td>
                <td>416467069 或者点击 <a href="tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=416467069&website={$_SERVER["HTTP_HOST"]}">添加</a></td>
            </tr>
            <tr>
                <td>官网</td>
                <td><a href="">Even</a></td>
            </tr>
        </table>
      </div>
      <div class="layui-tab-item">
        <table class="layui-table">
            <tr>
                <td width="40%">服务器域名</td>
                <td width="60%">{$_SERVER["HTTP_HOST"]}</td>
            </tr>
            <tr>
                <td>服务器标识</td>
                <td>{$_SERVER["SERVER_SOFTWARE"]}</td>
            </tr>
            <tr>
                <td>服务器操作系统</td>
                <td>{:php_uname('s')}</td>
            </tr>
            <tr>
                <td>服务器语言</td>
                <td>PHP-{:PHP_VERSION}</td>
            </tr>
            <tr>
                <td>服务器端口</td>
                <td>{$_SERVER['SERVER_PORT']}</td>
            </tr>
            <tr>
                <td>服务器主机名</td>
                <td>{:GetHostByName($_SERVER['SERVER_NAME'])}</td>
            </tr>
            <tr>
                <td>目录物理路径</td>
                <td>{:ROOT_PATH}</td>
            </tr>
        </table>
      </div>
      <div class="layui-tab-item">
        <table class="layui-table">
            <tr>
                <td width="40%">数据库版本</td>
                <td width="60%">{$db_version}</td>
            </tr>
            <tr>
                <td>数据库名称</td>
                <td>{:config('database.database')}</td>
            </tr>
            <tr>
                <td>数据库大小</td>
                <td>{$db_size}</td>
            </tr>
        </table>
      </div>
      <div class="layui-tab-item">
        <table class="layui-table">
            <tr>
                <td width="40%">PHP版本</td>
                <td width="60%">{:PHP_VERSION}</td>
            </tr>
            <tr>
                <td>上传文件最大限制</td>
                <td>{:ini_get("file_uploads") ? ini_get("upload_max_filesize") : "Disabled"}</td>
            </tr>
            <tr>
                <td>脚本运行占用最大内存</td>
                <td>{:get_cfg_var ("memory_limit")?get_cfg_var("memory_limit"):"无"}</td>
            </tr>
            <tr>
                <td>最大执行时间</td>
                <td>{:ini_get("max_execution_time")."秒"}</td>
            </tr>

            <tr>
                <td>POST提交最大限制</td>
                <td>{:ini_get("post_max_size")?:"Disabled"}</td>
            </tr>
        </table>
      </div>
    </div>
  </div>
{/block}
